/* ansh/include/ansh/ansh.h  
 * 
 * This file is part of ansh. 
 * 
 * ansh is free software: you can redistribute it and/or modify 
 * it under the terms of the GNU General Public License as published by 
 * the Free Software Foundation, either version 3 of the License, or 
 * (at your option) any later version. 
 * 
 * ansh is distributed in the hope that it will be useful, 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
 * GNU General Public License for more details. 
 * 
 * You should have received a copy of the GNU General Public License 
 * along with ansh. If not, see <https://www.gnu.org/licenses/>
 */ 




#ifndef __ANSH_ANSH_H
#define __ANSH_ANSH_H

#define toboolean(c) 	(!!(c))
#define likely(c) 	__builtin_expect(toboolean(c), 1)
#define unlikely(c) 	__builtin_expect(toboolean(c), 0)

int do_builtin_cmd(int argc, char **argv);
extern char *cwd;

#endif

